package gameObjects;

import java.util.Vector;

import logic.Coords2D;

public class WallCollection{
	private Vector<Coords2D> walls;
	public WallCollection()
	{
		walls=new Vector<Coords2D>();
	}
	
	public void setVector(Vector<Coords2D> k)
	{
		walls=k;
	}
	
	public void  removeByCoords(int x, int y)
	{
		for(int j=0; j<walls.size();j++){
			if(walls.get(j).getX()==x && walls.get(j).getY()==y){
				walls.remove(j);
				break;
			}
		}
	}
	
	public Vector<Coords2D> getVector()
	{
		return walls;
	}
}
